/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import javax.swing.JTabbedPane;

/**
 *
 * @author K u Ku
 */
public class pnlStudent extends javax.swing.JPanel {

    /**
     * Creates new form pnlBase
     */
    public pnlStudent() {
        initComponents();
    }
    public pnlStudent(JTabbedPane tab) {
        initComponents();
        this.tab = tab;
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlList = new javax.swing.JPanel();
        pnlTable = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblData = new javax.swing.JTable();
        pnlSearch = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        txtSearch = new javax.swing.JTextField();
        cboSearch = new javax.swing.JComboBox();
        btnExport = new javax.swing.JButton();
        pnlDetails = new javax.swing.JPanel();
        pnlButton = new javax.swing.JPanel();
        btnInsert = new javax.swing.JButton();
        btnUpdate = new javax.swing.JButton();
        btnDelete = new javax.swing.JButton();
        btnClose = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();

        setMinimumSize(new java.awt.Dimension(800, 500));
        setPreferredSize(new java.awt.Dimension(800, 500));
        setLayout(new java.awt.BorderLayout());

        pnlList.setLayout(new java.awt.BorderLayout());

        pnlTable.setLayout(new java.awt.BorderLayout());

        tblData.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tblData);

        pnlTable.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        pnlList.add(pnlTable, java.awt.BorderLayout.CENTER);

        pnlSearch.setPreferredSize(new java.awt.Dimension(800, 30));
        pnlSearch.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

        jLabel1.setText("Search");
        pnlSearch.add(jLabel1);

        txtSearch.setPreferredSize(new java.awt.Dimension(400, 20));
        pnlSearch.add(txtSearch);

        cboSearch.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "By ID", "By Name" }));
        cboSearch.setPreferredSize(new java.awt.Dimension(80, 20));
        pnlSearch.add(cboSearch);

        btnExport.setText("Export");
        btnExport.setMaximumSize(new java.awt.Dimension(80, 23));
        btnExport.setMinimumSize(new java.awt.Dimension(80, 23));
        btnExport.setPreferredSize(new java.awt.Dimension(80, 23));
        pnlSearch.add(btnExport);

        pnlList.add(pnlSearch, java.awt.BorderLayout.PAGE_START);

        add(pnlList, java.awt.BorderLayout.CENTER);

        pnlDetails.setPreferredSize(new java.awt.Dimension(800, 250));
        pnlDetails.setLayout(new java.awt.BorderLayout());

        pnlButton.setMinimumSize(new java.awt.Dimension(800, 30));
        pnlButton.setPreferredSize(new java.awt.Dimension(800, 30));
        pnlButton.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

        btnInsert.setText("Insert");
        btnInsert.setPreferredSize(new java.awt.Dimension(80, 23));
        pnlButton.add(btnInsert);

        btnUpdate.setText("Update");
        btnUpdate.setPreferredSize(new java.awt.Dimension(80, 23));
        pnlButton.add(btnUpdate);

        btnDelete.setText("Delete");
        btnDelete.setPreferredSize(new java.awt.Dimension(80, 23));
        pnlButton.add(btnDelete);

        btnClose.setText("Close");
        btnClose.setPreferredSize(new java.awt.Dimension(80, 23));
        pnlButton.add(btnClose);

        pnlDetails.add(pnlButton, java.awt.BorderLayout.CENTER);

        jPanel2.setPreferredSize(new java.awt.Dimension(800, 220));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 800, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 220, Short.MAX_VALUE)
        );

        pnlDetails.add(jPanel2, java.awt.BorderLayout.PAGE_START);

        add(pnlDetails, java.awt.BorderLayout.PAGE_END);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnClose;
    private javax.swing.JButton btnDelete;
    private javax.swing.JButton btnExport;
    private javax.swing.JButton btnInsert;
    private javax.swing.JButton btnUpdate;
    private javax.swing.JComboBox cboSearch;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel pnlButton;
    private javax.swing.JPanel pnlDetails;
    private javax.swing.JPanel pnlList;
    private javax.swing.JPanel pnlSearch;
    private javax.swing.JPanel pnlTable;
    private javax.swing.JTable tblData;
    private javax.swing.JTextField txtSearch;
    // End of variables declaration//GEN-END:variables
    JTabbedPane tab = new JTabbedPane();
}
